<template>
  <fs-page>
    <fs-crud ref="crudRef" v-bind="crudBinding" />
  </fs-page>
</template>

<script lang="ts" setup>
import { onMounted } from 'vue'
import { useFs, useFsRef } from '@fast-crud/fast-crud'
import createCrudOptions from './crud'
const { crudRef, crudBinding, crudExpose } = useFsRef()
//同步初始化crud
useFs({ crudRef, crudBinding, crudExpose, createCrudOptions })
// 页面打开后获取列表数据
onMounted(() => {
  crudExpose.doRefresh()
})
</script>
